package com.zhss.security.demospringsecurity.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.security.web.authentication.rememberme.PersistentRememberMeToken;

import java.util.Date;

/**
 * @ClassName PersistentTokenMapper
 * @Description TODO
 * @Author leejiliang
 * @DateTime 2021/9/15 14:36
 * @Version 1.0
 */
@Mapper
public interface PersistentTokenMapper {

	void createNewToken(PersistentRememberMeToken token) ;

	void updateToken(String series, String tokenValue, Date lastUsed);

	PersistentRememberMeToken getTokenForSeries(String seriesId);

	void removeUserTokens(String username);
}
